package com.qingmeng.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class Blog implements Serializable {
    private Long id;

    @ApiModelProperty(value = "发布人id")
    private Long blogPublisherId;

    @ApiModelProperty(value = "博客标题")
    private String blogTitle;

    @ApiModelProperty(value = "博客内容")
    private String blogContext;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "观看次数")
    private Integer blogLookNumber;

    @ApiModelProperty(value = "收藏次数")
    private Integer blogCollectionNumber;

    @ApiModelProperty(value = "点赞次数")
    private Integer blogLikeNumber;

    @ApiModelProperty(value = "删除标签（1为被删除，0为没被删除）")
    private Integer deleteTag;

    @ApiModelProperty(value = "博客摘要")
    private String blogInfo;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBlogPublisherId() {
        return blogPublisherId;
    }

    public void setBlogPublisherId(Long blogPublisherId) {
        this.blogPublisherId = blogPublisherId;
    }

    public String getBlogTitle() {
        return blogTitle;
    }

    public void setBlogTitle(String blogTitle) {
        this.blogTitle = blogTitle;
    }

    public String getBlogContext() {
        return blogContext;
    }

    public void setBlogContext(String blogContext) {
        this.blogContext = blogContext;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getBlogLookNumber() {
        return blogLookNumber;
    }

    public void setBlogLookNumber(Integer blogLookNumber) {
        this.blogLookNumber = blogLookNumber;
    }

    public Integer getBlogCollectionNumber() {
        return blogCollectionNumber;
    }

    public void setBlogCollectionNumber(Integer blogCollectionNumber) {
        this.blogCollectionNumber = blogCollectionNumber;
    }

    public Integer getBlogLikeNumber() {
        return blogLikeNumber;
    }

    public void setBlogLikeNumber(Integer blogLikeNumber) {
        this.blogLikeNumber = blogLikeNumber;
    }

    public Integer getDeleteTag() {
        return deleteTag;
    }

    public void setDeleteTag(Integer deleteTag) {
        this.deleteTag = deleteTag;
    }

    public String getBlogInfo() {
        return blogInfo;
    }

    public void setBlogInfo(String blogInfo) {
        this.blogInfo = blogInfo;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", blogPublisherId=").append(blogPublisherId);
        sb.append(", blogTitle=").append(blogTitle);
        sb.append(", blogContext=").append(blogContext);
        sb.append(", publishTime=").append(publishTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", blogLookNumber=").append(blogLookNumber);
        sb.append(", blogCollectionNumber=").append(blogCollectionNumber);
        sb.append(", blogLikeNumber=").append(blogLikeNumber);
        sb.append(", deleteTag=").append(deleteTag);
        sb.append(", blogInfo=").append(blogInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}